/**     
 * @{#} ErrorCode.java Create on 2011-7-22 上午09:24:06     
 *     
 * Copyright (c) 2011 by xiaofeng.zhouxf     
 */
package com.sefer.memcached.constants;

/**
 * @author <a href="mailto:xiaofeng.zhouxf83@gmail.com">xiaofeng.zhouxf</a>
 * @version 1.0
 */
public enum ErrorCode {
	// 4xx for client error
	E_400("400", "connect exception"), E_401("401", "connect time out"),
	// 5xx for server error
	E_500("500", "connect fail"),
	// 3xx for write or read data error
	E_301("301", "write or read fail"), E_302("302", "close socket error"),
	// 1xx for initialization error
	E_100("100","initialization params error");

	String code;
	String i18nMessage;

	private ErrorCode(String code, String i18nMessage) {
		this.code = code;
		this.i18nMessage = i18nMessage;
	}

	private ErrorCode(String code) {
		this.code = code;
	}

}
